<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>测试js与原生交互</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"/>
</head>

<body>
<div id="test">
    测试js与原生交互
</div>
<script>
        function onAndroidFinish(port, data) {
            alert("port:"+port+" msg:"+msg);
        }
       function setImag(path){
		    document.getElementById("imgs").src=""+path;
         }
        function toUrl(num){
            prompt('http://nativeJsImpl/openActivity?{clsPath:.ui.user.MyInviteRecordActivity}','');
		}




</script>
<div>
    <button onclick="prompt('http://nativeJsImpl/openActivity?{clsPath:.SecondActivity,showValue:传参成功}','')">
        跳转
    </button>
    <button onclick="prompt('http://nativeJsImpl/finishPage','')">
        关闭页面
    </button>
</div>
</body>
</html>